package io.renren.entity.dto;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

/**
 * @Author: hongyuliu
 * @Date: 2020-08-06
 * @Version 1.0
 */
@Data
@Document(indexName = "book_page")
public class BookPageSyncDto {

    @Id
    private String id;

    /**
     * 教辅书id
     */
    private Long bookId;

    /**
     * 教辅书名称
     */
    private String bookName;

    /**
     * 页码
     */
    private Integer pageNo;

    /**
     * 完整内容
     */
    @Field(type = FieldType.Text, analyzer = "ik_max_word")
    private String fullContent;

    /**
     * 习题列表
     */
    private List<ItemBean> itemList;
}
